<?php /* Smarty version 2.3.0, created on 2011-08-22 17:57:27
         compiled from Default/admin.tpl */ ?>
<table  align="center" width="953" style="BORDER-RIGHT:#999 1px solid; border-bottom:#999 1px solid; border-left:#999 1px solid; 
        border-top:#999 1px solid;" border="0" cellpadding="0" cellspacing="0">
		
  <!--DWLayoutTable-->
  <tr>
    <td height="19" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="20" height="19" valign="top" bgcolor="#333333" style="border-bottom:#999999 2px solid;"><!--DWLayoutEmptyCell-->&nbsp;</td>
        <td width="644" valign="middle" bgcolor="#333333" class="style2" style="border-bottom:#999999 2px solid;">Administracion
          de Usuarios </td>
        <td width="268" align="right" valign="middle" bgcolor="#333333" class="style2" style="border-bottom:#999999 2px solid;">
		<a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/index.php" class="blanco">[Pagina Principal]</a></td>
        <td bgcolor="#333333" style="border-bottom:#999999 2px solid;" width="19" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td  width="15" height="163" valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="936" valign="top"><table   width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td height="81" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="146" height="38">&nbsp;</td>
              <td width="1097">&nbsp;</td>
          </tr>
          <tr>
            <td height="24" valign="top"><input type="button" name="userNew" value="Insertar Nuevo" onclick="location.href='<?php echo $this->_tpl_vars['conf']['html']; ?>
/admin.php?userNew=1';"  title="crear un nuevo usuario"/></td>
                <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="22">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          


          
          
          
          </table></td>
          </tr>
      
      
      <tr>
        <td width="898" height="53" valign="top">
          
          <table class="centro" width="100%" border="1" bordercolor="#999999" cellpadding="1" cellspacing="2">
            <!--DWLayoutTable-->
            <tr>
              <td width="147" height="24" ><strong>Nombre</strong> </td>
                    <td width="169" ><strong>Correo</strong></td>
                    <td width="163" ><strong>Nombre de Usuario </strong></td>
                    <td width="123" ><strong>Tipo - Admin</strong></td>
                    <td width="121" ><strong>Lugar</strong></td>
                    <td width="52" ><strong>Estado</strong></td>
                    <td width="77" ><strong>Editar</strong></td>
              </tr>
            <?php if (isset($this->_sections["u"])) unset($this->_sections["u"]);
$this->_sections["u"]['name'] = "u";
$this->_sections["u"]['loop'] = is_array($this->_tpl_vars['data']['users']) ? count($this->_tpl_vars['data']['users']) : max(0, (int)$this->_tpl_vars['data']['users']);
$this->_sections["u"]['show'] = true;
$this->_sections["u"]['max'] = $this->_sections["u"]['loop'];
$this->_sections["u"]['step'] = 1;
$this->_sections["u"]['start'] = $this->_sections["u"]['step'] > 0 ? 0 : $this->_sections["u"]['loop']-1;
if ($this->_sections["u"]['show']) {
    $this->_sections["u"]['total'] = $this->_sections["u"]['loop'];
    if ($this->_sections["u"]['total'] == 0)
        $this->_sections["u"]['show'] = false;
} else
    $this->_sections["u"]['total'] = 0;
if ($this->_sections["u"]['show']):

            for ($this->_sections["u"]['index'] = $this->_sections["u"]['start'], $this->_sections["u"]['iteration'] = 1;
                 $this->_sections["u"]['iteration'] <= $this->_sections["u"]['total'];
                 $this->_sections["u"]['index'] += $this->_sections["u"]['step'], $this->_sections["u"]['iteration']++):
$this->_sections["u"]['rownum'] = $this->_sections["u"]['iteration'];
$this->_sections["u"]['index_prev'] = $this->_sections["u"]['index'] - $this->_sections["u"]['step'];
$this->_sections["u"]['index_next'] = $this->_sections["u"]['index'] + $this->_sections["u"]['step'];
$this->_sections["u"]['first']      = ($this->_sections["u"]['iteration'] == 1);
$this->_sections["u"]['last']       = ($this->_sections["u"]['iteration'] == $this->_sections["u"]['total']);
?>
            <tr>
              <td height="24" ><?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['name']; ?>
</td>
                    <td ><?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['email']; ?>
</td>
                    <td ><?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['username']; ?>
</td>
                    <td > 
					<?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['type'] == 0): ?>
					  Super_administrador
					<?php else: ?>
					  <?php if (isset($this->_sections["s"])) unset($this->_sections["s"]);
$this->_sections["s"]['name'] = "s";
$this->_sections["s"]['loop'] = is_array($this->_tpl_vars['data']['admin_type']['uid']) ? count($this->_tpl_vars['data']['admin_type']['uid']) : max(0, (int)$this->_tpl_vars['data']['admin_type']['uid']);
$this->_sections["s"]['show'] = true;
$this->_sections["s"]['max'] = $this->_sections["s"]['loop'];
$this->_sections["s"]['step'] = 1;
$this->_sections["s"]['start'] = $this->_sections["s"]['step'] > 0 ? 0 : $this->_sections["s"]['loop']-1;
if ($this->_sections["s"]['show']) {
    $this->_sections["s"]['total'] = $this->_sections["s"]['loop'];
    if ($this->_sections["s"]['total'] == 0)
        $this->_sections["s"]['show'] = false;
} else
    $this->_sections["s"]['total'] = 0;
if ($this->_sections["s"]['show']):

            for ($this->_sections["s"]['index'] = $this->_sections["s"]['start'], $this->_sections["s"]['iteration'] = 1;
                 $this->_sections["s"]['iteration'] <= $this->_sections["s"]['total'];
                 $this->_sections["s"]['index'] += $this->_sections["s"]['step'], $this->_sections["s"]['iteration']++):
$this->_sections["s"]['rownum'] = $this->_sections["s"]['iteration'];
$this->_sections["s"]['index_prev'] = $this->_sections["s"]['index'] - $this->_sections["s"]['step'];
$this->_sections["s"]['index_next'] = $this->_sections["s"]['index'] + $this->_sections["s"]['step'];
$this->_sections["s"]['first']      = ($this->_sections["s"]['iteration'] == 1);
$this->_sections["s"]['last']       = ($this->_sections["s"]['iteration'] == $this->_sections["s"]['total']);
?>
					    <?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['type'] == $this->_tpl_vars['data']['admin_type']['uid'][$this->_sections['s']['index']]): ?><?php echo $this->_tpl_vars['data']['admin_type']['name'][$this->_sections['s']['index']]; ?>
<?php endif; ?>
					  <?php endfor; endif; ?>
					<?php endif; ?>
					</td>
                    <td ><?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['place']; ?>
</td>
                    <td ><?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['active_selected'] == "checked"): ?>Activo<?php else: ?>Inactivo<?php endif; ?></td>
                    <td ><a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/admin.php?editAdmin=1&aid_=<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
"><img src="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/edit.png" width="16" height="16" border="0" title="cambiar las datos de este usuario" /></a></td>
              </tr>
				  <?php endfor; endif; ?>
			</table></td>
            <td width="38">&nbsp;</td>
          </tr>
      <tr>
        <td height="26">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
      
      
      
      
      
      
      
      
      
      
    </table></td>
  </tr>
  
  <tr>
    <td height="26" colspan="2" valign="top" ><table style="border-top:#999 1px solid;"  width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      
      <tr>
        <td width="951" height="26" align="center" valign="middle" bgcolor="#EBEBEB" style="border-top:#D7D7D7 2px solid; border-bottom:#D7D7D7 2px solid;"><strong><a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/index.php" class="negro">[Pagina Principal]</a></strong></td>
        </tr>
      
      
    </table></td>
    </tr>
  
</table>
